package cn.demarcia.coco.ui.activity;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;

import butterknife.Bind;
import cn.demarcia.coco.AppContext;
import cn.demarcia.coco.AppManager;
import cn.demarcia.coco.R;
import cn.demarcia.coco.uihelper.SharedPreferenceUtils;

/**
 * Created by 智尧
 * on 2016/7/18.
 */
public class BaseActivity extends AppCompatActivity {
    public AppContext appContext;
    public SharedPreferenceUtils mSpUtils;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        AppManager.getAppManager().addActivity(this);
        appContext = (AppContext) getApplication();
        mSpUtils = SharedPreferenceUtils.getInstance(this);

    }
}
